package com.dingding.special.user.set.dto;

import com.dingding.common.core.util.paravalidate.CanNull;

/**
 * 
 * @ClassName: ReqOrderDesignateSetDTO 
 * @Description: 专车订单设置
 * @author CHEHAUNBO 
 * @date 2016年8月25日 下午10:06:51
 * @since V2.4.0
 * 
 */
public class ReqOrderDesignateSetDTO {

	private int appointOrderType; // 指派类型 1:实时 2:预约 3:全部

	private int distanceFilter;// 距离筛选 1：1.5KM 2：3KM 3：5KM

	@CanNull
	private String startTime;// 开始时间
	@CanNull
	private String endTime;// 结束时间

	private String userId;// 用户ID

	private int voiceAnnouncements;// 语音播报 1：开启 2：关闭

	public int getAppointOrderType() {
		return appointOrderType;
	}

	public void setAppointOrderType(int appointOrderType) {
		this.appointOrderType = appointOrderType;
	}

	public Double getDistanceFilter() {

		if (distanceFilter == 1) {
			return 1.5d;
		} else if (distanceFilter == 2) {
			return 3d;
		} else {
			return 5d;
		}

	}

	public void setDistanceFilter(int distanceFilter) {

		this.distanceFilter = distanceFilter;

	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public int getVoiceAnnouncements() {
		return voiceAnnouncements;
	}

	public void setVoiceAnnouncements(int voiceAnnouncements) {
		this.voiceAnnouncements = voiceAnnouncements;
	}

}
